package com.mcptt.db.model;

import android.content.ContentValues;
import android.database.Cursor;
import android.database.DatabaseUtils;

import com.cloudptt.api.comm.CheckData;
import com.cloudptt.api.comm.Common;
import com.cloudptt.api.models.lbs.LocationData;
import com.mcptt.db.DbConst;

import java.io.Serializable;

public class OnlineInfo implements Serializable
{
	public static final int MapPointType_GPS = 0;

	//	private UserInfo sender = null;  //发送方属性
	private String senderId = null;
	private int statue = 0;
	private String ip = null;


	public OnlineInfo(String senderId, int statue) {
		this.senderId = senderId;
		this.statue = statue;
		this.ip = "";
	}



	public ContentValues getContentValues(){
		ContentValues cv = new ContentValues();

		cv.put(DbConst.COL_SenderId, senderId);
		cv.put(DbConst.COL_State, 1);
		cv.put(DbConst.COL_Ip, ip);
		return cv;
	}
	public String getSenderId() {
		return senderId;
	}


	public int getStatue() {
		return statue;
	}
	public String toString()
	{
		StringBuffer buffer = new StringBuffer("MapPointInfo:");
		//buffer.append("receiver = ").append(receiver).append(",");
//		buffer.append("sender = ").append(sender).append(",");
		buffer.append("senderId = ").append(senderId).append(",");
		buffer.append("ip = ").append(ip).append(";");

		return buffer.toString();
	}
}
